home *** CD-ROM | disk | FTP | other *** search
- setpoint "Set a point." 1
- pointval x1 y1 z1 1
- window 10,50
- locate 3, 10
- input "Enter the height " h
- input " width " w
- input " depth " d
- wclose
- h1=y1+h
- w1=x1+w
- d1=z1+d
-
- >Box
- {
- <pointxyz [x1,y1,z1]
- <pointxyz [w1,h1,d1]
- }
- if (d1<z1) then z2=d1
- if (d1>=z1) then z2=z1
- if not(w = 0) then
- >Dimension
- {
-
- <type 0
- <Arrowhead 3
- <Arrowsize 1
- <Axis 0
- <Size 1
- <fix 0
- <Format 0
- <Precision 2
- <pointxyz [x1,y1,z2]
- <pointxyz [x1+w,y1,z2]
- <pointxyz [x1,y1+(-w/w)*5,z2]
-
- }
- end if
-
- if not(h = 0) then
- >Dimension
- {
-
- <type 0
- <Arrowhead 3
- <Arrowsize 1
- <Axis 0
- <Size 1
- <fix 0
- <Format 0
- <Precision 2
- <pointxyz [x1,y1,z2]
- <pointxyz [x1,y1+h,z2]
- <pointxyz [x1+(-h/h)*5,y1,z2]
-
- }
- end if
- if (x1 >= w1) then x2=x1
- if (w1 > x1) then x2=w1
- if not(d = 0) then
- >Dimension
- {
-
- <type 0
- <Arrowhead 3
- <Arrowsize 1
- <Axis 0
- <Size 1
- <fix 0
- <Format 0
- <Precision 2
- <pointxyz [x2,y1,z1]
- <pointxyz [x2,y1,z1+d]
- <pointxyz [x2,y1+(-d/d)*5,z1]
-
- }
- end if